package rsb21118.ningwei.lianxi;

import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {
        Scanner sc = new  Scanner(System.in);
        System.out.println("请输入1~7任意整数:");
        int x = sc.nextInt();
        Weeks(x);
    }
    public static void Weeks(int x) {
        String[] num = {"星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"};
            if (1 <= x && x <=7) {
                x--;
                String str = num[x];
                System.out.println("星期" + str);
            }else{
                System.out.println("输入错误!");
        }
    }
}
